package com.antt.cn.test04.activities;

import android.view.View;
import android.widget.TextView;

import com.antt.cn.mylibary.base.BaseActivity;
import com.antt.cn.test04.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Ant on 2017/5/26  14:58
 * <p>
 * <p>
 *
 * @version 1.0.0
 * @auther Ant
 */

public class Demo01Activity extends BaseActivity implements View.OnClickListener {

    @BindView(R.id.ac_demo01_text01)
    TextView text;

    @Override
    public void initView() {
        ButterKnife.bind(this);

    }

    @Override
    public void initData() {

    }

    @Override
    public void initListener() {

    }

    @Override
    public int getLayoutId() {
        return R.layout.ac_demo01;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.ac_demo01_text01:
                //getView();
                break;
        }
    }

    boolean isElipse = true;

    public void getView() {
        if (isElipse) {
            text.setMaxLines(2 << 10);
            isElipse = false;
        } else {
            text.setMaxLines(4);
            isElipse = true;
        }
    }
}
